#ifndef FPS_H
#define FPS_H

#include <sstream>

#include "UniversalIncludes.h"
#include "Screen.h"
#include "DrawHelper.h"

class Fps : public Screen
{
    private:
        Texture2D* font;

    public:
        Fps()
        {
            screenName = "Fps";
            font = ContentManager::LoadContent<Texture2D>("Media/DejaVuSansMonoLeft.tga");
        }
        virtual ~Fps() {};
        void draw()
        {
            std::ostringstream fps;
            fps << Engine::Instance().getFps();
            // May wish to use boost lexical cast instead
            DrawHelper::Instance().drawStr2D(fps.str(), 16, 0, 0, &Gray, font, -6);
        }
};

#endif
